home *** CD-ROM | disk | FTP | other *** search
- RANDOM_SEED(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- RRAANNDDOOMM__SSEEEEDD - Restarts or queries the pseudorandom number generator
-
- SSYYNNOOPPSSIISS
- CCAALLLL RRAANNDDOOMM__SSEEEEDD (([[SSIIZZEE==]_s_i_z_e] [,,[PPUUTT==]_p_u_t] [,,[GGEETT==]_g_e_t]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- The RRAANNDDOOMM__SSEEEEDD intrinsic subroutine restarts or queries the
- pseudorandom number generator used by RRAANNDDOOMM__NNUUMMBBEERR. It accepts the
- following arguments (note that there must be exactly one argument or
- no arguments present):
-
- _s_i_z_e Must be scalar and of type integer. It is an output
- argument. It is set to the number _N of integers that the
- processor uses to hold the value of the seed.
-
- _p_u_t Must be an integer array of rank one and _s_i_z_e >= _N. It is
- an input argument. It is used to set the seed value.
-
- _g_e_t Must be an integer array of rank one and _s_i_z_e >= _N. It is
- an output argument. It is set to the current value of the
- seed.
-
- The name of this intrinsic cannot be passed as an argument.
-
- EEXXAAMMPPLLEESS
- CALL RANDOM_SEED ! initization of seed
- CALL RANDOM_SEED(SIZE = K) ! Sets K = N
- CALL RANDOM_SEED(PUT = SEEDARRAY(1:K)) ! Set user seed
- CALL RANDOM_SEED(GET = OLDSEED(1:K)) ! Get current seed
-
- SSEEEE AALLSSOO
- RRAANNDDOOMM__NNUUMMBBEERR(3I)
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-